//
//  ALPS_PlayMusicTool.h
//  Alps
//
//  Created by dllo on 16/6/12.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <AVFoundation/AVFoundation.h>
#import "ALPS_PlayMusicModel.h"

/**
 *  播放器播放状态
 */
static BOOL isPlaying;

@interface ALPS_PlayMusicTool : NSObject

//+ (ALPS_PlayMusicTool *)shareInstance;


/**
 *  播放器
 */
@property (nonatomic, strong) AVPlayer *player;
/**
 *  播放器播放状态
 */
//@property (nonatomic, assign) BOOL isPlaying;
/**
 *  初始化单例
 */
+ (instancetype)manager;
/**
 *  播放
 */
- (void)playCurrentMusic;
/**
 *  暂停
 */
- (void)pauseCurrentMusic;

/**
 *  根据url播放广播
 */
- (void)playRadioWithURL:(NSString *)urlString;

/**
 *  播放时长
 *
 *  @return 播放时长字符串
 */
- (NSString *)getCurrentTime;


@property (nonatomic, strong) ALPS_PlayMusicModel *model;

@end
